package com.cxso.example.domain.wlpt.file;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

@Setter
@Getter
@Accessors(chain = true)
@Schema(description = "文件信息")
public class FileDomain {

    @Schema(description = "文件名")
    @NotBlank(message = "文件名不能为空")
    private String name;

    @Schema(description = "文件地址")
    @NotBlank(message = "文件地址不能为空")
    private String url;

}
